﻿using System.Collections.Generic;
using System.Collections.ObjectModel;

namespace Scrubblet.FrontEnd.Models.Entities
{
    public class BoardConfigurationVersion
    {
        public BoardConfigurationVersion()
        {
            SpecialCells = new Collection<BoardSpecialCellInfo>();
        }

        public int Id { get; set; }
        public int Version { get; set; }
        public virtual BoardConfiguration Configuration { get; set; }
        public virtual ICollection<BoardSpecialCellInfo> SpecialCells { get; set; }

        public void AddSpecialCell(BoardCellType type, int x, int y)
        {
            SpecialCells.Add(new BoardSpecialCellInfo {Type = type, X = x, Y = y});
        }
    }
}